package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.ProduceBean

/**
 * Created by chenxz on 2018/4/22.
 */
class ProduceAdapter(private val context: Context?, datas: MutableList<ProduceBean.ListBean>)
    : BaseQuickAdapter<ProduceBean.ListBean, BaseViewHolder>(R.layout.item_produce, datas) {

    override fun convert(helper: BaseViewHolder?, item: ProduceBean.ListBean?) {
        item ?: return
        helper ?: return
        helper.setText(R.id.tv_gc_name,item.gc_name ).setText(R.id.tv_goods_name,item.goods_name)
        helper.setText(R.id.tv_goods_serial,item.goods_serial )
    }

}
